package com.example.demo1.pk03multiconfig;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service

public class MultiConfig {
    @Value("${spring.data.redis.host}")
    private String redisHostName;

    @Value("${spring.datasource.url}")
    private String jdbcUrl;

    public void print(){
        System.out.println("redisHostName:"+redisHostName+"  , jdbcUrl:"+jdbcUrl);
    }
}
